local skel = fk.CreateSkill{
  name = "#fm__maxcard",
}
--local U = require "packages/utility/utility"
Fk:loadTranslationTable{
  ["fm__maxcard"] = "代号杀",
  [":fm__maxcard"] = "代号杀",
}
local list = {
  fm__luxun = 5,
  fm__lusu = 5,
}
---@type MaxCardsSpec
local maxcard = {
  global = true,
  fixed_func = function (self, player)
    for k, v in pairs(list) do
      if k == player.general then
        if type(v) == "number" then
          return v
        elseif type(v) == "function" then
          return v(player)
        end
      end
    end
  end
}
skel:addEffect("maxcards", maxcard)
return skel